package com.icangya.domain;

import javax.persistence.*;

@Entity
@Table(name = "fb_lifepay")
public class LiefpayDO {


    private long id;

    private String prepayId;

    private String orderSn;

    private String merchantOrderSn;

    private String money;

    private String openid;

    private String createTime;

    private String payStatus;

    @Basic
    @Column(name = "pay_status")
    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    @Basic
    @Column(name = "create_time")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "prepay_id")
    public String getPrepayId() {
        return prepayId;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    @Basic
    @Column(name = "order_sn")
    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    @Basic
    @Column(name = "merchant_order_sn")
    public String getMerchantOrderSn() {
        return merchantOrderSn;
    }

    public void setMerchantOrderSn(String merchantOrderSn) {
        this.merchantOrderSn = merchantOrderSn;
    }

    @Basic
    @Column(name = "money")
    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    @Basic
    @Column(name = "openid")
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }


    public LiefpayDO() {
    }

    public LiefpayDO(String prepayId, String orderSn, String merchantOrderSn, String money, String openid, String createTime, String payStatus) {
        this.prepayId = prepayId;
        this.orderSn = orderSn;
        this.merchantOrderSn = merchantOrderSn;
        this.money = money;
        this.openid = openid;
        this.createTime = createTime;
        this.payStatus = payStatus;
    }

    @Override
    public String toString() {
        return "LiefpayDO{" +
                "id=" + id +
                ", prepayId='" + prepayId + '\'' +
                ", orderSn='" + orderSn + '\'' +
                ", merchantOrderSn='" + merchantOrderSn + '\'' +
                ", money='" + money + '\'' +
                ", openid='" + openid + '\'' +
                ", createTime='" + createTime + '\'' +
                ", payStatus='" + payStatus + '\'' +
                '}';
    }
}
